package com.huakang.entity;

import java.io.Serializable;

/**
 * department
 * @author 
 */
public class Department implements Serializable {
    private Integer deid;

    private String dename;

    private static final long serialVersionUID = 1L;

    public Integer getDeid() {
        return deid;
    }

    public void setDeid(Integer deid) {
        this.deid = deid;
    }

    public String getDename() {
        return dename;
    }

    public void setDename(String dename) {
        this.dename = dename;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Department other = (Department) that;
        return (this.getDeid() == null ? other.getDeid() == null : this.getDeid().equals(other.getDeid()))
            && (this.getDename() == null ? other.getDename() == null : this.getDename().equals(other.getDename()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDeid() == null) ? 0 : getDeid().hashCode());
        result = prime * result + ((getDename() == null) ? 0 : getDename().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", deid=").append(deid);
        sb.append(", dename=").append(dename);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}